package com.wangsh.splider.orders.service;

import java.util.Map;

import com.wangsh.splider.common.pojo.ApiResponse;
import com.wangsh.splider.common.util.PageInfoUtil;
import com.wangsh.splider.orders.pojo.AOrdersClient;
import com.wangsh.splider.orders.pojo.AOrdersUsers;

/**
 * 订单接口
 * @author TeaBig
 */
public interface IOrdersDbService
{
	/*----- 订单客户端请求模块管理开始 -----*/
	/**
	 * 添加一条订单客户端请求
	 * 
	 * @param ordersClient
	 * @return
	 */
	ApiResponse<Object> saveOneClientService(AOrdersClient ordersClient);
	
	/**
	 * 更新一条订单客户端请求	
	 * @param ordersClient
	 * @return
	 */
	ApiResponse<Object> updateOneClientService(AOrdersClient ordersClient);
	
	/**
	 * 查询多条订单客户端请求
	 * 
	 * @param pageInfo
	 * @param type
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersClient> findCondListClientService(PageInfoUtil pageInfoUtil , Map<String, Object> condMap);

	/**
	 * 查询一条订单客户端请求
	 * 
	 * @param type
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersClient> findOneClientService(Map<String, Object> condMap);
	/*----- 订单客户端请求模块管理结束 -----*/
	
	/*----- 订单用户请求模块管理开始 -----*/
	/**
	 * 添加一条订单用户请求
	 * 
	 * @param ordersReq
	 * @return
	 */
	ApiResponse<Object> saveOneUsersService(AOrdersUsers ordersUsers);
	
	/**
	 * 更新一条订单用户请求
	 * @param ordersReq
	 * @return
	 */
	ApiResponse<Object> updateOneUsersService(AOrdersUsers ordersUsers);
	
	/**
	 * 查询多条订单用户请求
	 * 
	 * @param pageInfo
	 * @param type
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersUsers> findCondListUsersService(PageInfoUtil pageInfoUtil , Map<String, Object> condMap);

	/**
	 * 查询一条订单用户请求
	 * 
	 * @param type
	 * @param condMap
	 * @return
	 */
	ApiResponse<AOrdersUsers> findOneUsersService(Map<String, Object> condMap);
	/*----- 订单用户请求模块管理结束 -----*/
}
